<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>物品管理</title>
		<script type="text/javascript">
		function check()
		{
			if(document.form1.name.value=="")
			{
				alert("物品名称不能为空！");
				document.form1.name.focus();
				return;
			}
			else if(document.form1.number.value=="")
			{
				alert("物品数量不能为空！");
				document.form1.number.focus();
				return;
			}
			else
			{
				form1.submit();
			}
		}
		</script>
	</head>
	<body >
		<fieldset class="filedset" >
			<legend>
				添加物品
			</legend>
			<form action="add_resource_deal.jsp" name="form1" method="post" >
				<table align="center" width="38%" cellspacing="15" >
					<tr>
						<td>
							<div align="right">
								物品名称：
							</div>
						</td>
						<td>
							<div align="left">
							     <input type="text" name="name"  id="name"></input>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="right">
								数量：
							</div>
						</td>
						<td>
							<div align="left">
								<input type="text" name="number"  id="number"></input>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="right">
								说明：
							</div>
						</td>
						<td>
							<div align="left">
								<textarea name="describe" cols="18" rows="5" id="describe"></textarea>
							</div>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<div align="right"></div>
							<div align="center">
								<input type="submit" value="确定" onclick="check()"
									style="background: url(../../images/button.gif) no-repeat; border: 0px; height: 28px; width: 62px;" />
								&nbsp;&nbsp;&nbsp;&nbsp;
								<input name="input" type="reset" value="重置"
									style="background: url(../../images/button.gif) no-repeat; border: 0px; height: 28px; width: 62px;" />
							</div>
						</td>
					</tr>
				</table>
			</form>
		</fieldset>
	</body>
</html>